package com.waiting.string;

/**
 * @author bjweitingting
 * @description
 * @date 2018/7/17
 **/
public class nullMain {
    public static void main(String[] args) {

        System.out.println(replaceBlank(" testblank "));
    }

    public static String replaceBlank(String str) {
        System.out.println(str.trim().contains(" "));
        String result = "";
//        Pattern pattern = Pattern.compile("^[^\s*]$");
//        Matcher matcher = pattern.matcher(str);
//        boolean isMatch = matcher.matches();
//        System.out.println(isMatch);
//        result = matcher.replaceAll("");

        return result;
    }
}
